﻿using System;
using Runtime.Common.Interface;
using UnityEditor;

namespace Runtime.Common.Object
{
    public class GuidObject : IGuidObject, IDisposable
    {
        private string m_ClassGuid;
        public string ClassGuid => m_ClassGuid ?? (m_ClassGuid = Guid.NewGuid().ToString("N"));

        public override string ToString()
        {
            return ClassGuid;
        }

        public void Dispose()
        {
        }
    }
}